package cn.touna.jss.modules.custom.carmodel.synctask;

/**
 * Created by Steve.Tao on 2017/11/21.
 */
public class SyncModelResult {

    public final static int SUCCESS = 1;
    public final static int FAILED = 0;

    public SyncModelResult() {

    }

    public void setSuccess() {
        status = SUCCESS;
    }

    public boolean isSuccess() {
        return status == SUCCESS;
    }

    public void setFailed() {
        status = FAILED;
    }

    private int status;
    private String message;

    private String beginTime;
    private String endTime;
    private String cost;

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }
}
